package com.okami.java8.method.reference;

import org.springframework.core.annotation.MergedAnnotation;
import org.springframework.lang.Nullable;

import java.lang.annotation.Annotation;
import java.util.function.Predicate;

/**
 * @description:
 * @author: TanJingyu
 * @create: 2020-09-23 21:08
 **/
public class Test {
    public static void main(String[] args) {
        Test test = new Test();
        test.jump(Test::show);
    }

    public void show(String str) {
        System.out.println("跑起来了啊，哈哈！！！！");
    }

    public void jump(Demo demo) {
        demo.run(new Test(), "fjdksjfd");
    }
}

@FunctionalInterface
interface Demo {
    void run(Test test,String str);
}

